﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Web.Mvc
{
	public static class ModelStateExtensions
	{
		public static void MergeErrors(this ModelStateDictionary modelState, IDictionary<string, string> errors)
		{
			foreach (var error in errors)
			{
				modelState.AddModelError(error.Key, error.Value);
			}
		}
	}
}
